<?php
function phptemplate_comment_flat_expanded($comment, $node) {
  $links = module_invoke_all('link', 'comment', $comment, 0); 
  unset($links['comment_reply']);
  unset($links['comment_forbidden']);
  return theme('comment_view', $comment, $node, $links);

}

function phptemplate_comment_wrapper($content, $node) {
  $output = $content;
  if (!user_access('post comments')) {
    $output .= theme('box', NULL, theme('comment_post_forbidden', $node));
  }
  return $output;
}